package com.hksj.ecm.controller;

import com.hksj.common.core.model.Rest;
import com.hksj.ecm.dto.EnergyFLowDTO;
import com.hksj.ecm.dto.EnergyStatisticalAnalysisDTO;
import com.hksj.ecm.dto.EnergyStatisticsDTO;
import com.hksj.ecm.dto.EnergyTrendAnalysisDTO;
import com.hksj.ecm.service.EnergyStatisticalAnalysisService;
import com.hksj.ecm.vo.EnergyFLowChartVO;
import com.hksj.ecm.vo.EnergyGroupingVO;
import com.hksj.ecm.vo.EnergyStatisticalAnalysisVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ClassName EnergyStatisticalAnalysisController
 * @Description TODO
 * @Author @陈章
 * @Date 2024/8/16 11:04
 * @Version 1.0
 */
@Api(tags = "能耗监测-能耗统计分析")
@RequestMapping("/api/energyStatisticalAnalysis")
@RestController
public class EnergyStatisticalAnalysisController {
    @Autowired
    private EnergyStatisticalAnalysisService service;


    @ApiOperation(value = "能耗监测-能耗统计分析")
    @PostMapping("/queryEnergyStatisticalAnalysis")
    public Rest<EnergyGroupingVO> queryEnergyStatisticalAnalysis(@RequestBody EnergyStatisticsDTO dto) {
        EnergyGroupingVO energyGroupingVO = service.queryEnergyStatisticalAnalysis(dto);
        return Rest.ok(energyGroupingVO);
    }


}
